//
//  UITextField+DatePicker.h
//  Behing
//
//  Created by Lj on 2017/10/25.
//  Copyright © 2017年 lj. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^DoneWithDateBlock)(NSDate *date, id value);

@interface UITextField (DatePicker)<UITextFieldDelegate>
@property (nonatomic,copy) DoneWithDateBlock doneWithDateBlock;
@property (nonatomic, strong) UIDatePicker *datePicker;
@property (nonatomic, strong) NSIndexPath *indexPath;

- (void)showDatePicker:(DoneWithDateBlock)block datePickerMode:(UIDatePickerMode)datePickerMode;

- (void)removeDatePicker;

@end
